package com.tencent.trustsql.idm.demo.bean;

import com.alibaba.fastjson.JSONObject;

/**数字资产业务参数
 * Created by with Intellij IDEA
 * Author : tianhaoyi
 * Date : 2018/7/11
 * Time : 11:04
 */
public class DigitalAssetsCert {

    private String node_id;//节点ID,可以通过baas平台->相应链->基本信息页面中获取
    private String chain_id;//链ID,可以通过baas平台->相应链->基本信息页面中获取
    private String ledger_id;//账本ID,可以通过baas平台->相应链->相应账本页面中获取
    private String source_id;//原资产唯一ID，由机构自己维护，非Baas平台产生。对于黄金、积分等资产可以为空。
    private String owner_account;//资产持有方帐户地址，通过idm的接口获取
    private int asset_type;//资产类型：0. 商票1. 数字货币2. Q币3. 游戏装备4. 黄金5. 积分6. 卡券7. 股权
    private int amount;//资产份额
    private String unit;//资产单位
    private JSONObject content;//资产内容，不同资产类型资产内容不同，用户自定义，格式为json
    private long timestamp;//unix时间戳

    public String getNode_id() {
        return node_id;
    }

    public void setNode_id(String node_id) {
        this.node_id = node_id;
    }

    public String getChain_id() {
        return chain_id;
    }

    public void setChain_id(String chain_id) {
        this.chain_id = chain_id;
    }

    public String getLedger_id() {
        return ledger_id;
    }

    public void setLedger_id(String ledger_id) {
        this.ledger_id = ledger_id;
    }

    public String getSource_id() {
        return source_id;
    }

    public void setSource_id(String source_id) {
        this.source_id = source_id;
    }

    public String getOwner_account() {
        return owner_account;
    }

    public void setOwner_account(String owner_account) {
        this.owner_account = owner_account;
    }

    public int getAsset_type() {
        return asset_type;
    }

    public void setAsset_type(int asset_type) {
        this.asset_type = asset_type;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public JSONObject getContent() {
        return content;
    }

    public void setContent(JSONObject content) {
        this.content = content;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
